" 缩进
setlocal tabstop=4 shiftwidth=4 sts=4
" snippets
" inoremap <buffer> ,w <Esc>/ <++><CR>:nohlsearch<CR>"_c5l<CR>
inoremap <buffer> ,n ---<Enter><Enter>
inoremap <buffer> ,b **** <++><Esc>F*hi
inoremap <buffer> ,s ~~~~ <++><Esc>F~hi
inoremap <buffer> ,i ** <++><Esc>F*i
inoremap <buffer> ,d `` <++><Esc>F`i
inoremap <buffer> ,c ```<Enter><++><Enter>```<Enter><Enter><++><Esc>4kA
inoremap <buffer> ,m - [ ]
inoremap <buffer> ,p ![](<++>) <++><Esc>F[a
inoremap <buffer> ,a [](<++>) <++><Esc>F[a
inoremap <buffer> ,1 #<Space><Enter><++><Esc>kA
inoremap <buffer> ,2 ##<Space><Enter><++><Esc>kA
inoremap <buffer> ,3 ###<Space><Enter><++><Esc>kA
inoremap <buffer> ,4 ####<Space><Enter><++><Esc>kA
inoremap <buffer> ,l --------<Enter>
inoremap <buffer> ,> > --------<Enter>> <++> <Enter>> --------<Enter><C-R>=Search_word()<CR>
" <stretch>
" inoremap <buffer> ,w <esc>bi<<Esc>ea>
inoremap <buffer> ,w <esc>bi<<esc>ea><esc>F<vf>yf>pF<a/<esc>F<i
nnoremap <buffer> o $a<Enter>


" ==================== markdown-preview.nvim ====================
let g:mkdp_auto_start = 0
let g:mkdp_auto_close = 1
let g:mkdp_refresh_slow = 0
let g:mkdp_command_for_global = 0
let g:mkdp_open_to_the_world = 0
let g:mkdp_open_ip = ''
let g:mkdp_echo_preview_url = 0
let g:mkdp_browserfunc = ''
let g:mkdp_browser = 'wyeb'
let g:mkdp_preview_options = {
		\ 'mkit': {},
		\ 'katex': {},
		\ 'uml': {},
		\ 'maid': {},
		\ 'disable_sync_scroll': 0,
		\ 'sync_scroll_type': 'middle',
		\ 'hide_yaml_meta': 1
		\ }
let g:mkdp_markdown_css = ''
let g:mkdp_highlight_css = ''
let g:mkdp_port = ''
let g:mkdp_page_title = '「${name}」'
let g:mkdp_theme = 'light'



" ==================== vim-table-mode ====================
nnoremap <buffer> <leader>tm :TableModeToggle<CR>
nnoremap <buffer> <leader>a a\| <++> \| <++> \|<ESC>yyo\|------\|------\|<ESC>
" 生成一个 | <++> | <++> |
nnoremap <buffer> <leader>ss a\| <++> \| <++> \|<ESC>yy
inoremap <buffer> ,t \| <++> \| <++> \| <ESC>yyi

" -
inoremap <buffer> <C-l> <ESC>>$a<space>
inoremap <buffer> <C-f> <ESC><$a<space>
